package com.zlzlib.nettytest;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

/**
 * @DateTime: 2022/11/11 11:14
 * @Author zlz
 * @Version 1.0
 */
public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void b1Click(View v) {
        TestWeb.getInstance().init();
    }

    public void b2Click(View v) {
        TestWeb.getInstance().close();
    }

    public void b3Click(View v) {
        TestWeb.getInstance().restart();
    }

    public void b4Click(View v) {
        TestWeb.getInstance().send("test1");
    }
}
